package util;

import java.util.ArrayList;

import codeComposition.Element;
import codeComposition.ReferenceElement;

public class Translator {

	public static ArrayList<Element> stringsToElements(ArrayList<String> ss){
		ArrayList<Element> ae = new ArrayList<Element>();
		for(String s:ss){
			ReferenceElement ref = new ReferenceElement(s);
			ae.add(ref);
		}
		return ae;
	}
	public static ArrayList<Element> stringsToElements(String...ss){
		ArrayList<Element> ae = new ArrayList<Element>();
		for(String s:ss){
			ReferenceElement ref = new ReferenceElement(s);
			ae.add(ref);
		}
		return ae;
	}
	public static ArrayList<String> stringsToList(String...ss){
		ArrayList<String> ae = new ArrayList<String>();
		for(String s:ss){
			ae.add(s);
		}
		return ae;
	}
}